<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']}</label>
    <div class="layui-input-block {$value['class']}" style="{$value['style']}">
        {foreach $value['option'] as $key=>$va}
        {if $value['keytostr']}
        {if $value['value']==$key}
        <input type="radio" name="{$value['name']}" value="{$key}" title="{$va}" checked="">
        {else}
        <input type="radio" name="{$value['name']}" value="{$key}" title="{$va}">
        {/if}
        {else}
        {if $value['value']==$va}
        <input type="radio" name="{$value['name']}" value="{$va}" title="{$va}" checked="">
        {else}
        <input type="radio" name="{$value['name']}" value="{$va}" title="{$va}">
        {/if}
        {/if}
        {/foreach}
    </div>
</div>